package org.example.Test;


import io.restassured.RestAssured;
import io.restassured.http.Cookies;
import io.restassured.response.Response;
import org.apache.http.client.HttpClient;
import org.apache.http.impl.client.DefaultHttpClient;
import org.example.SlApi.JbxxApi.*;
import org.example.SlApi.MctjApi.McccApi;
import org.example.SlApi.MctjApi.MctjApi;
import org.example.SlApi.QykbApi;
import org.example.utils.ReadConf;
import org.example.utils.TestDataLoader;
import org.junit.BeforeClass;
import org.testng.annotations.Test;

import java.io.IOException;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import static org.example.RestClient.givenWithCookies;


public class SlTest {
    private static Cookies cookies;

//    @BeforeClass
//    public static void setup() {
//        // 设置基本的RestAssured配置，如Base URI等
//        RestAssured.baseURI = "http://10.1.10.141:9031/";
////        RestAssured.port = 80;


    private  static TestDataLoader testDataLoader;
    @BeforeClass // 注意：这个注解在 main 方法中不会执行，仅用于测试框架
    public static void setUp() throws IOException {
        // 实例化TestDataLoader，它会自动加载配置文件和Excel数据
        testDataLoader = new TestDataLoader();
    }
    @Test

    public static void test_login_1() throws IOException, SQLException, ClassNotFoundException {//设立选择大类页
        //1.根据函数返回类型、定义变更类型去接受返回值
        int res1 = QykbApi.qykbApi();//企业开办页面
        int res2 = McccApi.McccApi();//名称开办页面
        int res3 = MctjApi.mctjApi();//名称提交及跳转
        String res4 = QyjbxxbcApi.qyjbxxbcApi();//基本信息住所保存
        int res5 = ZsbcApi.zsbcApi();//读取住所基本信息
        int res7 = JyfwApi.jyfwApi();//读取住所基本信息
        int res6 = JbxxbcApi.jbxxbcApi();//保存基本信息

















    }
}
